package com.kang.service.warMap.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kang.CommonsUtils;
import com.kang.bean.bot.Population;
import com.kang.mapper.PopulationMapper;
import com.kang.service.warMap.PopulationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: service
 * @description:
 * @author: K.faWu
 * @create: 2022-06-09 14:32
 **/
@Service
public class PopulationServiceImpl extends ServiceImpl<PopulationMapper, Population> implements PopulationService {

    @Autowired
    private PopulationMapper populationMapper;

    @Override
    public Population getProByAccountCodeAndGroupCode(String accountCode, String groupCode) {
        QueryWrapper<Population> queryWrapper = CommonsUtils.selectCode(accountCode, groupCode);
        return populationMapper.selectOne(queryWrapper);
    }

}
